<include file="Public:head"/>
<div class="content">
	<div class="cLineB">
              <h4 class="left">分组用户</h4>
              <div class="clr"></div>
          </div>
          <div class="cLine">
              <div class="pageNavigator left">
             以下是关注您的用户信息
            </div>
            <div class="clr"></div>
          </div>

	<script type="text/javascript">
	function sendGroupMsg(){
		var select = $('#gpselect').val();
		var url = "{cms>:U('SubscribeGroup/postMsgIndex')}" + "&type=group&id="+ select;
		window.location = url;
		//alert(url);
	}
	</script>

	<div class="cLineC" style="line-height: 32px;">
		<form class="form" method="post" action="{cms>:U('SubscribeGroup/subscriberindex')}" target="_top">
			<select style="width: 150px;height: 25px;" name="gpselect" id="gpselect">
				<volist name="gpinfos" id="gpinfo">
					<option value="{cms>$gpinfo.groupid}"
					<if condition='$gpinfo.groupid eq $selectid'>
						selected="selected"
					</if>
					>{cms>$gpinfo.groupname}</option>
				</volist>
			</select>
		
			<input type="submit" value="查看"  class="btnGrayS vm bigbtn"/>
			<span>
				　　　或者你可以对该组用户
				<input type="button" value="发送消息" class="btnGrayS vm bigbtn" onclick="sendGroupMsg();"/>
			</span>
		</form>
	</div>

	<div class="msgWrap">
      <TABLE class="ListProduct" border="0" cellSpacing="0" cellPadding="0" width="100%">
			<THEAD>
				<TR>

					<TH class="keywords">头像</TH>
					<TH class="keywords">昵称</TH>
					<TH class="category">性别</TH>
					<TH class="keywords">省份</TH>
					<TH class="keywords">城市</TH>
					<TH class="keywords">所在分组</TH>
					<TH class="keywords">关注时间</TH>
					<TH class="keywords">操作</TH>
				</TR>
			</THEAD>
			<TBODY>
				<TR></TR>
				<volist name="subscribers" id="subscriber">
				<tr>
					<td><img src="{cms>$subscriber.headimgurl}" alt="无头像" width="80px"/> </td>
					<td>{cms>$subscriber.nickname}</td>
					<td><if condition="$subscriber.sex eq 1">男 <elseif
							condition="$subscriber.sex eq 2" />女 <else />未知 </if></td>
					<td>{cms>$subscriber.province}</td>
					<td>{cms>$subscriber.city}</td>
					<td><if condition="$subscriber.groupid eq ''">默认分组
						<else />{cms>$g[$subscriber['groupid']]}</if></td>
					<td><php>echo date('Y-m-d H:i:s',$subscriber['addtime']);</php></td>
					<td class="norightborder">
							<a href="{cms>:U('SubscribeGroup/editMemberGroup',array('id'=>$subscriber['openid']))}">编辑</a>
							<a href="{cms>:U('SubscribeGroup/postMsgIndex',array('type'=>'personal','id'=>$subscriber['openid']))}">发送消息</a>
					</td>
				</tr>
				</volist>

			</TBODY>
		</TABLE>
    </div>
          
    <div class="cLine">
            <div class="pageNavigator right">
                 <div class="pages">{cms>$page}</div>
              </div>
            <div class="clr"></div>
   </div>
    
</div>
<div class="clr"></div>      
<include file="Public:footer"/>	